package org.ibase4j.model.weixin;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.ibase4j.core.base.AppBaseModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 微信账号主体配置
 * </p>
 *
 * @author zoyee
 * @since 2018-08-08
 */
@ApiModel("微信账号主体配置")
@TableName("weixin_config")
@SuppressWarnings("serial")
public class WeixinConfig extends AppBaseModel {

    @ApiModelProperty(value = "主体名称")
	@TableField("account_name")
	private String accountName;
	
    @ApiModelProperty(value = "主体类型（1服务号；2订阅号；3小程序）")
	@TableField("account_type")
	private Integer accountType;
	
    @ApiModelProperty(value = "appId")
	@TableField("app_id")
	private String appId;
	
    @ApiModelProperty(value = "appSecret")
	@TableField("app_secret")
	private String appSecret;
	
    @ApiModelProperty(value = "token")
	private String token;
	
    @ApiModelProperty(value = "accessToken")
	@TableField("access_token")
	private String accessToken;
	
    @ApiModelProperty(value = "expiresTime")
	@TableField("expires_time")
	private Date expiresTime;
	
    @ApiModelProperty(value = "mchid")
	private String mchid;
	
    @ApiModelProperty(value = "key")
	private String key;
	
    @ApiModelProperty(value = "状态（1正常；2暂停服务；3终止服务）")
	private Integer status;
	
    @ApiModelProperty(value = "停止服务原因")
	private String reason;
	


	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public Integer getAccountType() {
		return accountType;
	}

	public void setAccountType(Integer accountType) {
		this.accountType = accountType;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Date getExpiresTime() {
		return expiresTime;
	}

	public void setExpiresTime(Date expiresTime) {
		this.expiresTime = expiresTime;
	}

	public String getMchid() {
		return mchid;
	}

	public void setMchid(String mchid) {
		this.mchid = mchid;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

}